﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AlloFlag.aspx.cs" Inherits="Allocatin_AlloFlag" %>

<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/rl.js"></script>

    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }
     function PrintData(id)
    {
        if(id!="")
        {
  
            window.open("DrawPrint.aspx?id="+id,"","width=800px,height=650px,left=100px,top=30px,scrollbars=yes");
            return false;
        }
        return false;
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img alt="" src="../images/module.gif" width="20" height="22" /></td>
                <td style="width: 232px">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="990" align="right">
                </td>
            </tr>
            <tr>
                <td colspan="3" align="right">
                    <img src="../images/search.gif" alt="搜索" width="16" height="16" />查询日期：<asp:TextBox ID="txtKdate" runat="server" CssClass="input1" Width="80px" MaxLength="10"></asp:TextBox>至<asp:TextBox
                        ID="txtJdate" runat="server" CssClass="input1" Width="80px" MaxLength="10"></asp:TextBox>单号：<asp:TextBox
                        ID="txtdh" runat="server" Width="100px" CssClass="input1"></asp:TextBox>编号：<asp:TextBox
                            ID="txtCode" runat="server" CssClass="input1" Width="80px"></asp:TextBox>审核状态：<asp:DropDownList
                                ID="ddlstate" runat="server">
                                <asp:ListItem Value="0">-选择状态-</asp:ListItem>
                                <asp:ListItem Value="1">未通过</asp:ListItem>
                                <asp:ListItem Value="2">已通过</asp:ListItem>
                            </asp:DropDownList>&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="搜索" CssClass="submit" OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" OnRowDataBound="GvData_RowDataBound" EmptyDataText="没有数据">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:BoundField HeaderText="单号" DataField="alloCode">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="编号" DataField="comodid">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="收货仓库" DataField="recewarehouse">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="品牌" DataField="Brand">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="名称" DataField="comodName">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="modul">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="单位" DataField="Unit">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="条码" DataField="comodBarcode">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="进价">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Prices","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="数量" DataField="number">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="调拨日期" DataField="adate">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="审核状态" DataField="AuditState">
                    <ItemStyle ForeColor="Red" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="linkbtnFlag" CommandArgument='<%#Eval("allocode") %>' runat="server"
                            OnClick="linkbtnFlag_Click">审核</asp:LinkButton>
                        <asp:LinkButton ID="linkbtnPrint" CommandArgument='<%#Eval("alloCode") %>' runat="server"
                            OnClick="linkbtnPrint_Click">打印</asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckFlag" runat="server" />
                    </ItemTemplate>
                    <ItemStyle Width="30px" HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 15%">
                </td>
                <td align="right">
                    <uc1:PageNavigator ID="PageNavigator1" runat="server" ConnectionString="connstr"
                        DataId="GvData" PageSize="17" ShowType="Text" />
                </td>
                <td align="right" style="height: 5px; width: 20%">
                    <input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="on" /><font
                        color="#FF0000">全选</font>&nbsp;&nbsp; &nbsp;<asp:Button ID="btnDel" runat="server"
                            Text="删除" CssClass="submit" OnClientClick="return confirm('确定要删除该信息吗?')" OnClick="btnDel_Click" />
                </td>
            </tr>
        </table>
        <asp:HiddenField ID="Hidid" runat="server" />
        <asp:HiddenField ID="HidWareid" runat="server" />
    </form>
</body>
</html>
